package
{
	import flash.display.Sprite;
	import flash.events.TextEvent;
	import flash.text.TextField;
	
	public class TestTextField3 extends Sprite
	{
		public function TestTextField3()
		{
			super();
			
			var text:TextField = new TextField();
			text.border = true;
			text.htmlText = "<a href='event:http://www.163.com' target='_blank'><u>click me pls</u></a>";
			this.addChild(text);
			text.addEventListener(TextEvent.LINK, onClickLink);
		}
		
		public	function	onClickLink(evt:TextEvent):void{
			trace("on click link:"+evt.text);
			
		}
	}
}